package zunyi06;

public class TestMyDate {
    public static void main(String[] args) {
        MyDate m1 = new MyDate(14,3,1976);
        MyDate m2 = new MyDate(14,3,1976);
        /*System.out.println(m1.hashCode());
        System.out.println(m2.hashCode());*/
        if(m1==m2) {
            System.out.println("m1==m2");
        }else {
            System.out.println("m1!=m2");
        }

        if(m1.equals(m2)) {
            System.out.println("m1 is equal to m2");
        }else {
            System.out.println("m1 is not equal to m2");
        }
    }

}
